﻿@using Coslen.TahorCRM.Domain.Model.Entities
@model Coslen.TahorCRM.Security.TahorPrincipal
@{
    ViewBag.Title = "AboutMe";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>About Me</h2>

<h3>System Variables</h3>
<table>
    @foreach (KeyValuePair<string, string> item in ViewBag.Variables)
    {
        <tr>
            <td>@item.Key</td>
            <td>@item.Value</td>
        </tr>
    }
</table>

<h3>Roles</h3>

<ul>
@foreach (UserRole userRole in Model.User.UserRoles)
{
    <li>@userRole.Role.Name
        <ul>
            @foreach (RoleRight roleRight in @userRole.Role.RoleRights)
            {
                <li>@roleRight.Right.Name</li>
            }
        </ul>
    </li>
}   
</ul>